﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Content/Scripts/jquery-1.8.0.min.js"></script>
    <script src="~/Content/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script>
        function success(data) {
            $("#txtResult").val(data);
        }
    </script>
</head>
<body>
    <div>
@using (Ajax.BeginForm("Parse", "ParseRequestMessage", new AjaxOptions { HttpMethod = "post", OnSuccess = "success" }))
{
        <h3>解析消息</h3>
        <h4>提示：本示例演示解析消息。</h4>
        <p>
            消息文本：
            <textarea id="txtMessage" name="txtMessage" style="width:500px;height:200px;" ></textarea>
</p>
        <p>
            解析结果：
            <textarea id="txtResult" name="txtResult" style="width:500px;height:200px;"></textarea>
        </p>
        <p>
            <input type="submit" value="开始解析" />
        </p>
}
    </div>
</body>
</html>
